package com.jidong.test_springboot.service;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jidong.test_springboot.dao.RouterDao;
import com.jidong.test_springboot.entity.Router;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class RouterService {
	
	@Autowired
	private RouterDao routerDao;
	
	//@Cacheable(value="default",key="'permission::'+#uname")
	public Set<Router> selectRouterByUname(String uname){
		log.info("读取数据库，获取菜单");
		return routerDao.selectRouterByUname(uname);
	}
	
	
}
